home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
45 Great Windows Utilities 7
/
45 Great Windows Utilities Volume 7 MOJO-411 (Mojo Software).iso
/
batsh
/
sample1.bsh
< prev
next >
Wrap
Text File
|
1995-02-08
|
592b
|
33 lines
; ask and show variables
wait off
label
icon exclamation
ask $$USER Enter your name please:
if errorlevel 1 set $$USER=Mr.NoName
label %$$USER%
:repeat
ask $PASSWORD Hi %$$USER% Give me your password please (! use a fake one,it will be displayed later):
if errorlevel 2 goto repeat
set PASS=%$PASSWORD%
set $PASSWORD=
ask $PASSWORD Please Confirm:
if %$PASSWORD%==%PASS% goto ok
Icon stop
label Sorry but not OK
wait 3
exit
:ok
label OK
message
Username: %$$USER%
Password: %PASS%
DOS environment:
windir: %WINDIR%
path: %PATH%
temp: %TEMP%
.15